package AntFarm;

public class Barrier extends TileContent{

	public Barrier()
	{
		System.out.println(this.getClass().getName() + " created");		
	}

	public void visit(TileContent tileContent) throws MovedToOtherTileException, CantMoveToThisTileEception
	{
		System.out.println( tileContent.getClass().getName() + " visits " +this.getClass().getName());
		try {
				tileContent.accept(this);
			} catch (CantMoveToThisTileEception e) {
				throw e;
			}
	}
}